package com.zygh.lz.controller.pc;

import com.zygh.lz.entity.bean.Pushsource;
import com.zygh.lz.service.InformationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Api(tags = "消息管理")
@RestController
@RequestMapping("/InformationController")
public class InformationController {

    @Resource
    private InformationService informationService;

    @ApiOperation("导出消息")
    @GetMapping("exportMessage")
    public String exportMessage(HttpServletResponse response, Pushsource pushsource) throws IOException {
        return informationService.exportMessage(response, pushsource);

    }


}
